
export default class Point {

    static fromPoint(point: Point) {
        return new Point(point.x, point.y)
    }

    x: number
    y: number
    constructor(x: number, y?: number) {
        this.x = x
        this.y = (y == null ? x : y!)
    }
}